package com.kcloud.commons.authorization.settings.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kcloud.commons.entity.core.StandardAttribute;
import lombok.Data;

import java.beans.Transient;


/**
 * 业务实体
 * @author songhuiqing
 */
@TableName("@@BIZ_ENTITY@@")
@Data
public class BizEntity implements StandardAttribute {

    @TableId(type = IdType.ID_WORKER_STR)
    private String bizEntityId;// 业务实体ID
    private String bizDomainCode;// 业务域编码
    private String bizEntityCode; // 业务实体编码
    private String bizEntityName; // 业务实体名称
    private String bizEntityTreeType; //业务实体树类型


    @Override
    public void setId(String id) {
        this.bizEntityId = id;
    }

    @Override
    public void setTitle(String title) {
        this.bizEntityName = title;
    }


    @Override
    public String getId() {
        return this.bizEntityId;
    }

    @Override
    public String getTitle() {
        return this.bizEntityName;
    }
}
